package com.example.junit.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * ClassName:User
 * Package:com.example.junit.bean
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/12-8:38
 * @Version:v1.0
 */
@Component
public class User {

    @Value("张三")
    private String name;

    public User(String name) {
        this.name = name;
    }

    public User() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
